/*
package net.csdn.business.common.feign.config;

import com.alibaba.cloud.sentinel.feign.SentinelFeignAutoConfiguration;
import com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.BlockExceptionHandler;
import feign.Feign;
import feign.RequestInterceptor;
import net.csdn.business.common.feign.aspect.SecurityInnerAspect;
import net.csdn.business.common.feign.handle.CloudUrlBlockHandler;
import net.csdn.business.common.feign.interceptor.AuthFeignClientInterceptor;
import net.csdn.business.common.feign.interceptor.TraceFeignClientInterceptor;
import net.csdn.business.common.feign.sentinel.CloudSentinelFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;


*/
/**
 * @Desc: sentinel降级相关配置
 * @ClassName: SentinelAutoConfiguration
 * @Author: zhangyl
 * @Date: 2022/12/20 16:00
 *//*

@Configuration(proxyBeanMethods = false)
@AutoConfigureBefore(SentinelFeignAutoConfiguration.class)
@EnableConfigurationProperties(FeignAuthConfig.class)
@ImportAutoConfiguration({SecurityInnerAspect.class})
public class SentinelAutoConfiguration {


    @Autowired
    private FeignAuthConfig feignAuthConfig;

    @Bean
    @Scope("prototype")
    @ConditionalOnMissingBean
    @ConditionalOnProperty(name = "feign.sentinel.enabled")
    public Feign.Builder feignSentinelBuilder() {
        return CloudSentinelFeign.builder();
    }

    @Bean
    @ConditionalOnProperty(name = "feign.sentinel.enabled")
    public BlockExceptionHandler blockExceptionHandler() {
        return new CloudUrlBlockHandler();
    }


    @Bean
    public RequestInterceptor authFeignClientInterceptor() {
        return new AuthFeignClientInterceptor(feignAuthConfig);
    }

    */
/*@Bean
    public RequestInterceptor traceFeignClientInterceptor() {
        return new TraceFeignClientInterceptor();
    }*//*


}*/
